<?php 
// no direct access
//defined('_JEXEC') or die('Restricted access'); 
?>
<form action="index.php" method="post" name="adminForm">
<div id="editcell">
	<table class="adminform">
		<tr>
			<td width="15%">
				<?=JText::_( 'OPTIONS SEARCH' );?>				
				<select name="filtername" id="filtername">
					<option value="all" selected="selected"><?=JText::_("KEY ALL") ?></option>
					<option value="username"><?=JText::_("KEY USERNAME") ?></option>
					<option value="eventstypes"><?=JText::_("KEY EVENTSTYPES") ?></option>
				</select>
			</td>			
			<td>
				<?php echo JText::_( 'SEARCH' );?>
				<input type="text" name="search" id="search" value="<?php echo $this->lists['search']; ?>" class="text_area" onChange="document.adminForm.submit();" />
				<button onclick="this.form.submit();"><?php echo JText::_( 'Go' ); ?></button>
				<button onclick="this.form.getElementById('search').value='';this.form.submit();"><?php echo JText::_( 'Reset' ); ?></button>
			</td>
		</tr>
	</table>
	<table class="adminlist">	
	<thead>
		<tr>
			<th width="5">
				<?php echo JText::_( 'ID' ); ?>
			</th>
			<th width="20">
				<input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count( $this->items ); ?>);" />
			</th>	
			<th>
				<?php echo JHTML::_('grid.sort', 'SUBJECT', 'subject', $this->lists['order_Dir'], $this->lists['order'] ); ?>				
			</th>
			<th>
				<?php echo JText::_( 'CONTENT' ); ?>
			</th>
			<th>
				<?php echo JHTML::_('grid.sort', 'EVENTTYPES', 'title', $this->lists['order_Dir'], $this->lists['order'] ); ?>
				
			</th>
			<th>
				<?php echo JText::_( 'ASSETGROUPS' ); ?>
			</th>			
			<th>
				<?php echo JText::_( 'USERNAME' ); ?>
			</th>
			<th>
				<?php echo JText::_( 'EMAIL' ); ?>
			</th>
			<th>
				<?php echo JHTML::_('grid.sort', 'START DATE', 'e.start_date', $this->lists['order_Dir'], $this->lists['order'] ); ?>				
			</th>
			<th>
				<?php echo JHTML::_('grid.sort', 'END DATE', 'e.end_date', $this->lists['order_Dir'], $this->lists['order'] ); ?>				
			</th>
		</tr>
	</thead>
	<tfoot>
		<tr>
			<td colspan="10">
				<?php echo $this->pageNav->getListFooter(); ?>
			</td>
		</tr>
	</tfoot>
	<tbody>	
	<?=$this->listItem?>
	</tbody>
	</table>
</div>
<input type="hidden" name="option" value="com_jbschedule" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="boxchecked" value="0" />
<input type="hidden" name="view" value="events" />
<input type="hidden" name="controller" value="events" />
<input type="hidden" name="filter_order" value="<?php echo $this->lists['order']; ?>" />
<input type="hidden" name="filter_order_Dir" value="" />
</form>
